﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using PiscoSourSOAPServices.Persistencia;
using PiscoSourDominio;

namespace PiscoSourSOAPServices
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Platos" in code, svc and config file together.
    public class Platos : IPlatos
    {
        private PlatoDAO platoDAO = null;
        
        private PlatoDAO PlatoDAO
        {
            get
            {
                if (platoDAO == null)
                    platoDAO = new PlatoDAO();
                return platoDAO;
            }
        }

        public List<Plato> ListarPlatos()
        {
            return PlatoDAO.ListarPlatos().ToList();
        }
    }
}
